﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dapper;
using System.Data;
using System.Data.OracleClient;

namespace _180FrameWork.DataBaseHelper.OracleExtend
{
    public  class OracleClobParameter : SqlMapper.ICustomQueryParameter
    {
        private readonly object value;

        public OracleClobParameter(object value)
        {
            this.value = value;
        }

        public void AddParameter(IDbCommand command, string name)
        {    
            var param = new OracleParameter(name,OracleType.Clob);
            param.Value = value;
            command.Parameters.Add(param);
        }
    }
}
